package com.corona.game;

/* loaded from: pokewilds.jar:com/pkmngen/game/TextSpeed.class */
public enum TextSpeed {
    SLOW(3),
    MID(2),
    FAST(1),
    INST(0);

    public final int framesToWait;

    TextSpeed(int framesToWait) {
        this.framesToWait = framesToWait;
    }

    public static TextSpeed parse(String raw) {
        char c = 65535;
        switch (raw.hashCode()) {
            case 3135580:
                if (raw.equals("fast")) {
                    c = 1;
                    break;
                }
                break;
            case 3237446:
                if (raw.equals("inst")) {
                    c = 2;
                    break;
                }
                break;
            case 3533313:
                if (raw.equals("slow")) {
                    c = 0;
                    break;
                }
                break;
        }
        switch (c) {
            case 0:
                return SLOW;
            case 1:
                return FAST;
            case 2:
                return INST;
            default:
                return MID;
        }
    }
}
